package com.demo.mvc.ioc;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Component
@ConfigurationProperties("animal")
public class AnimalConfig02 {
  @Value("${v01}")
  private String v01;
  @Value("${v02}")
  private String v02;
  @Value("${v03}")
  private String v03;
}
